import request from '@/utils/request'

// 查询CMC列表
export function listCmc(query) {
  return request({
    url: '/admin/cmc/list',
    method: 'get',
    params: query
  })
}

// 查询CMC详细
export function getCmc(id) {
  return request({
    url: '/admin/cmc/' + id,
    method: 'get'
  })
}

// 新增CMC
export function addCmc(data) {
  return request({
    url: '/admin/cmc',
    method: 'post',
    data: data
  })
}

// 修改CMC
export function updateCmc(data) {
  return request({
    url: '/admin/cmc',
    method: 'put',
    data: data
  })
}

// 删除CMC
export function delCmc(id) {
  return request({
    url: '/admin/cmc/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
